package com.gateway.common.exception;

import com.gateway.common.enums.ErrorCode;

import java.io.Serial;

/**
 * @program: api-gateway
 * @description:
 * @author: YuKai Fan
 * @create: 2025/1/27 23:05
 **/
public class GatewayException extends RuntimeException {

    @Serial
    private static final long serialVersionUID = 443816753821306208L;

    /**
     * Instantiates a new Gateway exception.
     *
     * @param e the e
     */
    public GatewayException(final Throwable e) {
        super(e);
    }

    /**
     * Instantiates a new Gateway exception.
     *
     * @param message the message
     */
    public GatewayException(final String message) {
        super(message);
    }

    /**
     * Instantiates a new Gateway exception.
     *
     * @param message   the message
     * @param throwable the throwable
     */
    public GatewayException(final String message, final Throwable throwable) {
        super(message, throwable);
    }
}
